@isTest
private class NotiAssiantUtilTest {
    static testMethod void testMethod1() {
         //客户1
        Account acc = TestUtils.createAccount();
        acc.Level__c = '三级甲等';
        acc.NCICCode__c = '1234sdd';
        acc.RecordTypeId= Utils.getRecordTypeIdByDevNameAndObjName('Dealer', 'Account');
       
        insert acc;     

        //业务机会1
        Opportunity opp = TestUtils.createOpportunity();
        opp.AccountId = acc.Id;
        opp.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('DealerOpportunity', 'Opportunity');
        insert opp;

        //报价1
        Quote qt1 = new Quote(Name = '仪器报价',Type__c = '仪器报价',OpportunityId = opp.Id,Status='已批准');
        insert qt1;
System.debug('+++报价通知');
        NotiAssiantUtil.noteQoute(qt1.Id);

    }
    
    static testMethod void testMethod2() {
          //客户1
        Account acc = TestUtils.createAccount();
        acc.Level__c = '三级甲等';
        insert acc;
        
        //业务机会1
        Opportunity opp = TestUtils.createOpportunity();
        opp.AccountId = acc.Id;
        insert opp;
        system.debug(opp+'=========================');
        System.Test.startTest();
       

     

        //测算信息1
        Measure_Calculate__c mc = new Measure_Calculate__c(Opportunity__c = opp.Id,Status__c = '审批成功');
        insert mc;
        NotiAssiantUtil.noteMeasure(mc.Id);

    }
}